﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Тхи_4_лаба
{
    class calculater
    {

        public int Calculate(company company_)
        {
            int  kol_passenges = company_.return_sy1().return_kol() * company_.return_sy1().return_passages() + company_.return_sy2().return_kol() * company_.return_sy2().return_passages();
            return kol_passenges;
        }

    }
}
